<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title></title>
	<link rel="stylesheet" href="">
</head>
<body>
	<script type="text/javascript">
		class Uncle{
			constructor(work,money){
				this.work = work;
				this.money =money;
			}

			showUncle(){
				console.log(`他舅是个${this.work},听了为的课以后达到月薪${this.money}`);
			}
			static play(){
				console.log('大吉大利，今晚吃鸡');
			}
		}

		class BigUncle extends Uncle{
			constructor(work,money,level){
				//console.log(this);在吧父类的this拿过来之前，还没有this.
				super(work,money);
				this.level = level;
			}
		}

		const uncle = new BigUncle('前端',20000,'T4');
		uncle.showUncle();

		//Person;
		BigUncle.play();

		console.log(Object.getPrototypeOf(BigUncle)  === Uncle,
			uncle instanceof BigUncle,
			uncle instanceof Uncle
		);
		
	</script>
</body>
</html>